package com.fy.oa.zc.rest;

import java.io.InputStream;
import java.util.Map;
import java.util.Set;

import org.dom4j.DocumentException;

import com.seeyon.client.CTPRestClient;

public interface FyOARestClient {

	void setUserName(String userName);

	void setPassword(String password);

	void setPath(String path);

	CTPRestClient getRestClient();

	Map<String, String> getFormValues(long summaryid, Set<String> nameSet);

	FyOARestValuesBean getFormValues(long summaryid, Set<String> nameSet,Set<String> repeatFieldNameSet);

	public boolean formImport(String message, String loginName, long summaryid) throws DocumentException;

	public boolean sendMessage(String message, long[] userArray);

	public String getToken();

	public InputStream download(String fileID);

	public String upload(byte[] fileBytes, String fileName);
}